<%@page import="com.swm.julie.rest.crud.twitt.TwittDocFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Result of insert new Twitt</title>
<%
/** format the web UI and response page with completeness of inserting new twitt **/
boolean result;

TwittDocFormat twitt = (TwittDocFormat) request.getAttribute("twitt");
if(twitt == null)
{
	result = false;
	
}else
{
	result = true;
}
%>
</head>
<body>
<h1>I'm insert result view</h1>
<div class="result" id="result">Inserting new twitt is <%= result %></div>
<div class="newTwitt">
<%if(result){%>
	Twitt is posted at <%= twitt.getPostdate() %> with the content : <%= twitt.getContents() %>.<br>
	Post URL of the twitt is <%= twitt.getPostUrl() %>. <br>
<%}%>
</div>
<input type="button" onclick="location.href='/index.html';" value="home">
</body>
</html>